import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path: '/',
            redirect: '/emp'
          },
          {
            path: '/hello',
            name: 'hello',
            component: () => import('../components/HelloWorld.vue')
          },
          {
            path:'/emp',
            name:'emp',
            component:()=>import('../views/emp.vue')
          },
          {
            path:'/pros',
            name:'pros',
            component:()=>import('../views/product.vue')
          },
          {
            path:'/news',
            name:'news',
            component:()=>import('../views/news.vue')
          },
          {
            path:'/users',
            name:'users',
            component:()=>import('../views/users.vue')
          }
    ]
})

export default router